﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SQLite;
using TestMatrix.Model;

namespace TestMatrix.DataModel
{
    public class DBHelper
    {
        //The sqlite connection
        private static SQLiteConnection dbConn = null;

        public static SQLiteConnection getConnection()
        {
            //return dbConn = new SQLiteConnection(@"E:\xq\WinPhone 8\Work\TestMatrix\TestMatrix.Phone\TestMatrix.Phone\TestMatrix.sqlite");

            return dbConn = new SQLiteConnection(ConstantDefinition.DB_PATH);

            //return dbConn = new SQLiteConnection(ConstantDefinition.GetDBPath());
        }
    }
}
